package com.design.patterns.creativeModel.facade.service;

import com.design.patterns.behavioralModel.singleton.Singleton;
import com.design.patterns.creativeModel.facade.service.company.Company;
import com.design.patterns.creativeModel.facade.service.process.AdminOfIndustry;
import com.design.patterns.creativeModel.facade.service.process.Bank;
import com.design.patterns.creativeModel.facade.service.process.Taxation;
import org.springframework.beans.factory.annotation.Autowired;

public class Facade {

    public static final Facade INSTANCE = new Facade();

    public String openCompany(String companyName,String namk,String taxationname) {
        Company register = AdminOfIndustry.INSTANCE.register(companyName);
        Company company = Bank.INSTANCE.openAccount(namk, register);
        Company company1 = Taxation.INSTANCE.applyTaxCode(taxationname, company);
        return company1.toString();
    }
}
